package fun.anin.aninhongbao.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/***
 * 红包在redis中缓存的实体
 * @author anin
 * @date: 2020/3/29 17:28
 * @version : V1.0
 */
@Data
@Builder
@AllArgsConstructor
public class RedPacketRedisModel implements Serializable{

    private static final long serialVersionUID = 1464328592089679810L;
    /**
     * 发红包的用户id
     */
    private Long userId;
    /**
     * 红包id
     */
    private Long redPacketId;
    /**
     * 剩余金额
     */
    private Integer surplusMoney;
    /**
     * 剩余个数
     */
    private Integer surplusNum;
    /**
     * 红包类型
     */
    private Integer type;
    /**
     * 发送时间
     */
    private Long datetime;

    public RedPacketRedisModel() {
    }
}
